const prefix = "/api";

const api = {
  get: {
    /** 分页查询 */
    searchInterfacePageList: `${prefix}/data_service/search_interface/page_list`,
    /** 详情 */
    getSearchInterfaceById: `${prefix}/data_service/search_interface/get_by_id/:id`,

    /** ===== 字典类 */
    /** 接口类型 */
    dictionaryInterfaceType: `${prefix}/data_service/dictionary/list/interface_type`,
    /** 输入类型 */
    dictionaryInputType: `${prefix}/data_service/dictionary/list/input_type`,
    /** 数据类型 */
    dictionaryDataType: `${prefix}/data_service/dictionary/list/data_type`,

    /** ===== 索引关联 */
    /** 索引列表 */
    getIndexList: `${prefix}/data_service/indexes/get_index_list`,
    /** 索引列表详情 */
    getIndexRelById: `${prefix}/data_service/indexes/get_index_rel/:id`,
    /** 搜索方式 */
    dictionarySearchMode: `${prefix}/data_service/dictionary/list/search_mode`,
    /** 索引字段 */
    getIndexFieldListById: `${prefix}/data_service/indexes/get_index_field_list/:id`,

    /** ===== 算法配置 */
    /** 算法列表 */
    getAlgorithmList: `${prefix}/data_service/get_algorithm_list`,

    /** 词库 */
    dictionaryLexicon: `${prefix}/data_service/dictionary/list/lexicon`,
    /** 召回算法 */
    dictionaryRecallAlgorithm: `${prefix}/data_service/dictionary/list/recall_algorithm`,
    /** 召回阈值 */
    dictionaryRecallThreshold: `${prefix}/data_service/dictionary/list/recall_threshold`,
  },

  post: {
    /** 添加 */
    addSearchInterface: `${prefix}/data_service/search_interface/add`,
    /** 编辑更新 */
    updateSearchInterface: `${prefix}/data_service/search_interface/update`,
    /** 删除（批量/单个通用） */
    deleteSearchInterface: `${prefix}/data_service/search_interface/delete`,
    /** 启/停用（批量/单个通用） */
    updateInterfaceStatus: `${prefix}/data_service/search_interface/update_interface_status`,
    /** ===== 算法版本 */
    getAlgorithmVersions: `${prefix}/data_service/get_algorithm_versions`,
    /** 接口预览 */
    getPreviewData: `${prefix}/data_service/search_interface/get_preview_data`,
    /** 接口测试 */
    testInterface: `${prefix}/data_service/search_interface/test_interface`,
  },

};

export default api;
